home *** CD-ROM | disk | FTP | other *** search
- package engine.levelData
- {
- import copy.CopyBank;
- import engine.WorldScene;
- import engine.dynamicObjects.*;
-
- public class Level_12 extends LevelData
- {
-
-
- public function Level_12()
- {
- super();
- _goalParameters = new Array();
- }
-
- override public function buildLevel() : *
- {
- var i:* = undefined;
- var fuelIcon:* = undefined;
- var goalObj:Object = null;
- var missionObj:Object = null;
- var ring:* = undefined;
- var indian:* = undefined;
- super.buildLevel();
- for(i = 0; i < 20; i++)
- {
- ring = new GoalRing();
- ring.x = 1000 + i * 100;
- ring.y = 300 + Math.random() * 400;
- ring.rOffset = Math.random() * 2 - 1;
- WorldScene.Instance.GameplayObjects.push(ring);
- }
- for(i = 0; i < 8; i++)
- {
- indian = new Indian();
- indian.x = 1000 + i * 200;
- indian.y = 710;
- WorldScene.Instance.GameplayObjects.push(indian);
- WorldScene.Instance.Indians.push(indian);
- }
- fuelIcon = new FuelIcon();
- fuelIcon.x = 1000;
- fuelIcon.y = 250;
- WorldScene.Instance.GameplayObjects.push(fuelIcon);
- fuelIcon = new FuelIcon();
- fuelIcon.x = 1000;
- fuelIcon.y = 500;
- WorldScene.Instance.GameplayObjects.push(fuelIcon);
- fuelIcon = new FuelIcon();
- fuelIcon.x = 1250;
- fuelIcon.y = 250;
- WorldScene.Instance.GameplayObjects.push(fuelIcon);
- fuelIcon = new FuelIcon();
- fuelIcon.x = 1250;
- fuelIcon.y = 500;
- WorldScene.Instance.GameplayObjects.push(fuelIcon);
- _missionDescription = CopyBank.Instance.MissionDesc_Rings;
- goalObj = {
- "Type":"Ring",
- "Count":20
- };
- _goalParameters.push(goalObj);
- missionObj = {
- "Description":_missionDescription,
- "BoundsX":_missionBoundsX,
- "BoundsHint":_missionBoundsHint,
- "GoalParamaters":_goalParameters,
- "PrimaryGoalType":"Rings",
- "StartLoc":{
- "x":500,
- "y":850
- }
- };
- WorldScene.Instance.setMissionDetails(missionObj);
- }
- }
- }
-